# Contributor: Jakub Jirutka <jakub@jirutka.cz>
# Contributor: Maxim Karasev <begs@disroot.org>
# Maintainer: Jakub Jirutka <jakub@jirutka.cz>
pkgname=tree-sitter-lua
pkgver=0.0.10
pkgrel=0
pkgdesc="Lua grammar for tree-sitter"
url="https://github.com/MunifTanjim/tree-sitter-lua"
arch="all"
license="MIT"
makedepends="tree-sitter-dev"
install_if="tree-sitter-grammars"
source="https://github.com/MunifTanjim/tree-sitter-lua/archive/v$pkgver/tree-sitter-lua-$pkgver.tar.gz"
options="!check"  # no tests for shared lib

build() {
	abuild-tree-sitter build
}

package() {
	DESTDIR="$pkgdir" abuild-tree-sitter install
}

sha512sums="
eb5ff5fe6eb77ab3957cc0c9c0f369e3603b83a81ad1f0a9e368e5f15dabb8b7d533b7f937c3da73218b0ad4a49057d758d03077458f79cccb776379dc5a75ae  tree-sitter-lua-0.0.10.tar.gz
"
